<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/course.css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>

<block name="body">
    <!--登录后显示个人区域-->
     <div class="col-md-2">  
           
           <include file="Public/tsidebar"  />
     </div>
     <!--/登录后显示个人区域-->


     <div class="col-md-10 content">
     <div class="row">

           <div class="white-box"> 
             <legend>年级课程设置</legend>
                
               <form class="form-horizontal form-condensed" role="form" method="post" id="gradeform" action="__SELF__">          
                 <div class="form-group">
                    <label class="col-md-2 control-label required">年　级：</label>
                      <div class="col-md-3">
                         <select name="grade_t" class="form-control"  style="width:100px;" onChange="this.form.submit()">
                            <option value="{$agrade.grade}" >{$agrade.grade_t}</option>
                             <volist name="gradelist" id="v">
                                <option value="{$v.grade_t}" >{$v.grade_t}</option>            
                             </volist>                          
                        </select>
                      </div>  <input class="btn btn-info" value="提 交"  type="submit" >
                      <a href="#frm-post-popup" class="btn btn-success open-popup-link"> 新 增 </a>
                     
                    </div>
                    </form>
               
                    <table class="table table-bordered">
                    <thead>
                    <tr>
                      <th>#ID</th><th>年级</th><th>课程标题</th><th>上传类型</th><th>文件扩展名</th><th>更新日期</th><th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="v">
                    <tr>
                      <td>{$v.id}</td><td>{$v.grade_t}</td><td>{$v.title}</td>
                      <td>
                            <eq name="v.up_cat" value="pic">图片</eq>
                            <eq name="v.up_cat" value="doc">文档</eq>
                            <eq name="v.up_cat" value=""> 未知</eq>
                      </td>
                      <td>{$v.allow_ext}</td><td>{$v.update_time|date="Y-m-d",###}</td>
                      <td><a href="{:U('Course/teacher/editCourse',array(id=>$v['id']))}" data-toggle='modal' class="" data-title="编辑课程信息">编辑</a>
                      ｜<a href="{:U('coursecontent',array(cid=>$v['id']))}">内容</a>｜删除</td>
                      </tr>
                      </volist>
                     
                    </tbody>
                    </table> 

       </div> 
        <include file="_addbox"/>
       </div>

   </block>  


